package com.ezcoding.engine;

import com.ezcoding.model.Dingdan;
import com.ezcoding.model.DingdanDetail;
import com.ezcoding.model.Product;
import com.ezcoding.model.UserRelation;
import com.ezcoding.utils.StatusUtil;

import java.util.List;
import java.util.Map;

public class PurchaseDingdanCalculator extends BaseDingdanCalculator {

    public PurchaseDingdanCalculator(Dingdan dingdan, List<DingdanDetail> details) {
        super(dingdan, details);
    }

    @Override
    public int getRelationType() {
        return UserRelation.RELATION_TYPE_GIVER;
    }

    @Override
    public double getTotalMoney() {
        return 0;
    }

    @Override
    public void updateProductStore(Product product, int needCount) {

    }

    @Override
    public void updateProductAndDetail(Product product, DingdanDetail detail) {

    }

    @Override
    public void updateProfit(DingdanDetail detail, double inPrice) {

    }

    @Override
    public void updateProductInPrice(Product product, DingdanDetail detail) {

    }

    @Override
    public boolean checkProductStore(int curCount, int needCount) {
        return false;
    }

    @Override
    public double getCurTicket(double curValue) {
        return 0;
    }

    @Override
    public double getCurMoney(double curValue) {
        return 0;
    }

    @Override
    public void setDetailTicket(DingdanDetail detail, double value) {

    }

    @Override
    public void setDetailMoney(DingdanDetail detail, double value) {

    }

    @Override
    public void setTicket(double value) {

    }

    @Override
    public void setMoney(double value) {

    }

    @Override
    public void updateCompanyInfo() {

    }

    @Override
    public Map<String, Object> updateRelatedDingdanInfo() {
        return StatusUtil.getSuccessStatusWithEmptyMessage();
    }
}
